package com.woniuxy.client;

import com.woniuxy.dto.JsonResultDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("ProductService")
@RequestMapping("/product")
public interface MovieClientProduct {
    @PostMapping("/test")
    public String one(@RequestParam("id") String id);

    @GetMapping("/productTest")
    public JsonResultDto productTest();
}
